/**
 * Created by LangK on 2016/12/19.
 */

export default [
  {
    path: '/',
    redirect: '/login'
  },
  {
    path: '/home',
    redirect: '/home/pillmanage'
  },
  {
    path: '/login',
    component: function (resolve) {
      require(['./components/Login.vue'], resolve)
    }
  },
  {
    path: '/home',
    component: function (resolve) {
      require(['./components/Home.vue'], resolve)
    },
    children: [{
      path: 'pillmanage',
      component: function (resolve) {
        require(['./components/pillmanage/pillmanage.vue'], resolve)
      },
    },
    {
      path: 'addpill',
      component: function (resolve) {
        require(['./components/pillmanage/addpill.vue'], resolve)
      },
    },
    {
      path: 'editpill',
      component: function (resolve) {
        require(['./components/pillmanage/editpill.vue'], resolve)
      },
    },
    {
      path: 'pillrecord',
      component: function (resolve) {
        require(['./components/pillmanage/pillrecord.vue'], resolve)
      },
    },
    {
      path: 'codemanage',
      component: function (resolve) {
        require(['./components/codemanage/codemanage.vue'], resolve)
      }
    },
    {
      path: 'codeproduce',
      component: function (resolve) {
        require(['./components/codemanage/codeproduce.vue'], resolve)
      }
    },
    {
      path: 'editcode',
      component: function (resolve) {
        require(['./components/codemanage/editcode.vue'], resolve)
      }
    },
    {
      path: 'coderecord',
      component: function (resolve) {
        require(['./components/codemanage/coderecord.vue'], resolve)
      }
    },
    {
      path: 'stockmanage',
      component: function (resolve) {
        require(['./components/stockmanage/stockmanage.vue'], resolve)
      }
    },
    {
      path: 'inStockFileUpload',
      component: function (resolve) {
        require(['./components/stockmanage/inStockFileUpload.vue'], resolve)
      }
    },
    {
      path: 'outStockFileUpload',
      component: function (resolve) {
        require(['./components/leaveStorage/outStockFileUpload.vue'], resolve)
      }
    },
    {
      path: 'dealermanage',
      component: function (resolve) {
        require(['./components/dealermanage/dealermanage.vue'], resolve)
      }
    },
    {
      path: 'systemmanage',
      component: function (resolve) {
        require(['./components/systemmanage/systemmanage.vue'], resolve)
      }
    },
    {
      path: 'systemAdd',
      component: function (resolve) {
        require(['./components/systemmanage/Addsystem.vue'], resolve)
      }
    },
    {
      path: 'dealermanageAdd',
      component: function (resolve) {
        require(['./components/dealermanage/dealermanageAdd.vue'], resolve)
      }
    },
    {

      path: 'amendsystem',
      component: function (resolve) {
        require(['./components/systemmanage/amendsystem.vue'], resolve)
      }
    },
    {
      path: 'dealeramend',
      component: function (resolve) {
        require(['./components/dealermanage/dealeramend.vue'], resolve)
}
    },
    {
      path: 'leaveStorage',
      component: function (resolve) {
        require(['./components/leaveStorage/leaveStorageManage.vue'], resolve)

      }
    },
    {
      path: 'systemaccount',
      component: function (resolve) {
        require(['./components/systemmanage/systemaccount.vue'], resolve)

      }
    },
    ]
  }
]
